<template>
	<p>曾小贤的成绩:</p>
	<p v-show="type==='A'">优秀</p>
	<p v-show="type==='B'">良好</p>
	<p v-show="type==='C'">及格</p>
	<button @click="type='A'">A:切换为优秀</button>
	<button @click="type='B'">B:切换为良好</button>
	<button @click="type='C'">C:切换为及格</button>
</template>

<script setup>
import { ref } from 'vue';

	const type=ref('A')
</script>

<style>
</style>